package com.bdqn.membersystem.servicce.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bdqn.membersystem.mapper.InventoryMapper;
import com.bdqn.membersystem.pojo.Inventory;
import com.bdqn.membersystem.servicce.InventoryService;
@Service
public class InventoryServiceImpl implements InventoryService{

    @Resource
    private InventoryMapper inventoryMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return inventoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(Inventory record) {
        return inventoryMapper.insertSelective(record);
    }

    @Override
    public Inventory selectByPrimaryKey(String id) {
        return inventoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Inventory record) {
        return inventoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateBatch(List<Inventory> list) {
        return inventoryMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<Inventory> list) {
        return inventoryMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(Inventory record) {
        return inventoryMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Inventory record) {
        return inventoryMapper.insertOrUpdateSelective(record);
    }

}
